package com.lagou.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.lagou.util.ResponseData;

public class CodeBlockHandler {

    public static ResponseData handleException(String email, BlockException blockException){
        return ResponseData.fail("sentinel熔断降级");
    }

    public static ResponseData handleError(String email){
        return ResponseData.fail("系统异常");
    }
}
